package it.apiconsulting.sharem.model;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="t_guest")
public class Guest implements Serializable{
	
	private static final long serialVersionUID = -8767337896773261247L;
	
    private Long id;
    private String username;
    private Long idUser;
    private Date datacreazione;

	@Id
	@GeneratedValue
	@Column(name="id")
	public Long getId() {
		return id;
	}
	
	@Column(name="username")
	public String getUsername() {
		return username;
	}
	
	@Column(name="id_user")
	public Long getIdUser() {
		return idUser;
	}
	
	@Column(name="data_creazione")
	public Date getDatacreazione() {
		return datacreazione;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}
	
	public void setIdUser(Long idUser) {
		this.idUser = idUser;
	}
	public void setDatacreazione(Date datacreazione) {
		this.datacreazione = datacreazione;
	}
}